/**
 * Created by jimmy on 2017/6/11.
 */

var orderDao = require('../dao/OrderDao');

exports.insPreOrd = function (order,callbk) {
    orderDao.insPreOrd(order,callbk);
}

exports.getOrder = function (usrId,status,callbk) {
    orderDao.getOrder(usrId,status,callbk);
}

exports.getOrderSendFee = function (usrId,status,callbk) {
    orderDao.getOrderSendFee(usrId,status,callbk);
}

exports.delOrder = function (ordId,callbk) {
    orderDao.delOrder(ordId,callbk);
}

exports.addProdSum  = function (ordId,sum,callbk){
    orderDao.addProdSum(ordId,sum,callbk);
}

exports.subOrd = function (ordIds,callbk){
    orderDao.subOrd(ordIds,callbk);
}

exports.getAddr = function (userId,callbk) {
    orderDao.getAddr(userId,callbk);
}

exports.delAddr = function (addrId,callbk){
    orderDao.delAddr(addrId,callbk);
}

exports.addAddr = function (addInfo,callbk){
    orderDao.addAddr(addInfo,callbk);
}

exports.setdef = function (addrid,callbk){
    orderDao.setdef(addrid,callbk);
}

exports.setnodef = function (addrid,userid,callbk) {
    orderDao.setnodef(addrid,userid,callbk);
}

exports.insWxNotify = function (param,callbk){
    orderDao.insWxNotify(param,callbk);
}

exports.paySucOrd = function (ordIds,callbk){
    orderDao.paySucOrd(ordIds,callbk);
}

exports.getOrdSum = function (userId,callbk){
    orderDao.getOrdSum(userId,callbk);
}

exports.getOrdSendFee = function (userId,callbk) {
    orderDao.getOrdSendFee(userId,callbk);
}

exports.getPayMoney = function (str,userId,callbk) {
    orderDao.getPayOrd(str,userId,callbk);
}

exports.insOrdAddr = function (payOrdId,addrId,callbk){
    orderDao.insOrdAddr(payOrdId,addrId,callbk);
}

exports.cancelOrd = function (ordIds,callbk) {
    orderDao.cancelOrd(ordIds,callbk);
}